home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
paslib.arc
/
DATE.INC
< prev
next >
Wrap
Text File
|
1986-10-05
|
482b
|
19 lines
TYPE
DATE = RECORD
DAYOFWEEK,YEAR,MONTH,DAY:INTEGER; END;
VAR
D : DATE;
CONST WEEKST : STRING[21] = 'SunMonTueWedThuFriSat';
MONTHST: STRING[36] = 'JanFebMarAprMayJunJulAugSepOctNovDec';
PROCEDURE GETDATE(VAR D : DATE)
BEGIN
R.AX := $2A00;
MSDOS(R);
D.DAYOFWEEK := LO(R.AX);
D.YEAR := R.CX;
D.MONTH := HI(R.DX);
D.DAY := LO(R.DX);
END;